home *** CD-ROM | disk | FTP | other *** search
/ Adobe Graphics & Publishing SDK 1996 December / Adobe Graphics & Publishing SDK 1996 December.iso / mac / PageMaker 6.5 SDK Mac / SourceCode / PageMakerClassLibrary / Queries / PGetTextRun.cpp < prev    next >
C/C++ Source or Header  |  1996-08-15  |  883b  |  38 lines

  1. /*
  2.  *--- PGetTextRun.cpp -----------------------------------------------------
  3.  * Copyright (c) 1995-96 Adobe Systems Incorporated.  All rights reserved.
  4.  * Created on Sun, Oct 22, 1995 @ 4:49 PM by Paul Ferguson.
  5.  *
  6.  * Description:  For notes about this class, refer to the
  7.  * PCL documentation file PGetTextRun.html
  8.  *-------------------------------------------------------------------------
  9.  */
  10.  
  11. #include "PGetTextRun.h"
  12. #include "PQuery.h"
  13. #include "PReplyBuf.h"
  14. #include "PRequestBuf.h"
  15.  
  16. const size_t REPLY_SIZE = 4 * sizeof (long);
  17.  
  18. PGetTextRun::PGetTextRun(long nRunStyle)
  19. {
  20.     char req[4];
  21.     char temp[REPLY_SIZE];
  22.     
  23.     PRequestBuf request(req);
  24.     
  25.     request << nRunStyle;
  26.  
  27.     PQuery query(pm_gettextrun, request, temp, REPLY_SIZE);
  28.  
  29.     PReplyBuf reply(temp);
  30.     
  31.     reply    >> nStoryID
  32.             >> nBegin
  33.             >> nEnd
  34.             >> nReason;
  35. }
  36.  
  37. // end of PGetTextRun.cpp
  38.